home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / multitasking / coders / easyprocess / readme < prev    next >
Text File  |  2000-03-05  |  2KB  |  68 lines

  1. Easy Processes
  2. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  3.     This is a process control library. You can easily launch threads,
  4. pass them data, send them kill signals and wait for their termination
  5. with a few simple calls.
  6.  
  7.  
  8. Functions
  9. ¯¯¯¯¯¯¯¯¯
  10.     The library contains eigth (8)  user-accessible  functions.  They
  11. were designed  to add no new data types or  conventions, to be easily
  12. integrated in your programs.  They provide just enough functionnality
  13. without bothering you with any low-level nightmare.  Here's a rundown
  14. of their names and basic uses, their exact descriptions are contained
  15. in the comment in the beginning of the source file.
  16.  
  17.     StartProcess
  18.         start a process on a C function, with a name and a priority.
  19.  
  20.     KillProcess
  21.         send a kill signal to a process.
  22.  
  23.     KillProcesses
  24.         send a kill signal to all the processes you spawned.
  25.  
  26.     WaitProcess
  27.         wait until the process finishes.
  28.  
  29.     WaitProcesses
  30.         wait until all the processes you spawned are finished.
  31.  
  32.     CheckKill
  33.         check if someone has sent you a kill signal.
  34.  
  35.     CheckAlive
  36.         check if a process is still alive.
  37.  
  38.     FlushProcesses
  39.         Free ressources tied to processes you spawned that are
  40.         finished, leave the others undisturbed.
  41.  
  42.  
  43. How the &^%$@ do I use them ???
  44. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  45.     Well, there's two example programs provided  with the library and
  46. they are fully documented.  
  47.  
  48.     One is a simple `file loop' program used to tie two file together
  49. so  they can  interchange  information in  both direction at the same 
  50. time.  You can use it to link a RAW: console to your modem (via SER:)
  51. and thus have a simple terminal !
  52.  
  53.     The other is  a fractal-like generator  based on an article in an
  54. old Scientific American.  While the program is generating an image on
  55. the screen,  you can still use all the program's functions, including
  56. starting another fractal on the same screen !
  57.  
  58. --
  59.  
  60.   dak@info.polymtl.ca
  61.  
  62.   Pierre Baillargeon
  63.   11555 Joseph-Boyer
  64.   Montréal, Québec, Canada
  65.   H1G 4X6
  66.  
  67. --
  68.